<template>
  <el-container>
    <home-aside v-show="isActive" :collapse="Collapse" />
    <el-container>
      <el-header>
        <!-- el-icon-s-fold el-icon-s-unfold  -->
        <div
          class="aside-menu"
          :class="isActive ? 'el-icon-s-fold' : 'el-icon-s-unfold'"
          @click="menuClick"
        ></div>
        <div class="head-center">
          <home-bread />
        </div>
      </el-header>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>
<script>
import HomeAside from "./components/aside";
import HomeBread from "./components/bread";
export default {
  name: "user",
  components: {
    HomeAside,
    HomeBread
  },
  data() {
    return {
      Collapse: false,
      isActive: true
    };
  },
  methods: {
    menuClick() {
      /* this.Collapse = !this.Collapse; */
      this.isActive = !this.isActive;
    }
  },
  computed: {
  }
};
</script>
<style lang="scss">
.el-header {
  display: flex;
  justify-content: center;
  align-items: center;
}
.aside-menu {
  width: 40px;
  font-size: 32px;
  line-height: 40px;
  margin: 5px 5px 5px 0;
  cursor: pointer;
  text-align: center;
}
.head-center {
  flex: 1;
  line-height: center;
}
.user {
  width: 60px;
  margin-right: 20px;
}
</style>
